<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


        <button onclick="getUser()">获取用户</button>

        <script src="https://unpkg.com/axios/dist/axios.js"></script>

        <script>

            function getUser(){



                // axios.get('http://localhost:8080/web/result/req4').then(response=>{
                //     console.log("response",response.data)
                // })

                // axios.get('http://localhost:8080/web/result/req5').then(response=>{
                //     console.log("data",response.data)
                // })

                // axios.get('http://localhost:8080/web/result/req6').then(response=>{
                //     console.log("data",response.data)
                // })



                axios('http://localhost:8080/web/rest/req6').then(response=>{
                    console.log("data",response.data)
                })

            }


        </script>

</body>
</html>